<?php
/**
 *
 * web.php
 * User: kalvin
 * Date: 2018/1/24
 * Time: 下午3:17
 */

$r->addRoute('GET', '/', 'IndexController@showIndex');
// {id} must be a number (\d+)
//$r->addRoute('GET', '/user/{id:\d+}', 'get_user_handler');
// The /{title} suffix is optional
//$r->addRoute('GET', '/articles/{id:\d+}[/{title}]', 'get_article_handler');